
#include <UnloadArea.h>
#include <World.h>
#include <Camera.h>

UnloadArea::UnloadArea(World* worldptr)
:Command(CommandType::BLOCKING)
,world(worldptr)
{
}

UnloadArea::~UnloadArea() 
{}

truth UnloadArea::Execute()
{
	if(world->GetCurrentArea())
	{
		world->UnloadCurrentArea();
	}

	Global::SetDebugMode(0);
	complete = 1;
	return complete;
}